﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using Happy.Web.Mvc;
using Happy.Cms.Application.Articles;

namespace Ciep.WebSite.Controllers
{
    public class SkitterController : HappyController
    {
        //
        // GET: /Skitter/

        public ActionResult Index()
        {
            var articles = this.Service<ArticleQueryService>()
                .FindByCategoryName("幻灯片");

            return View(articles);
        }

        public ActionResult Detail(Guid id)
        {
            var article = this.Service<ArticleQueryService>()
                .SingleOrDefault(id);

            return View(article);
        }
    }
}
